import { RouteRecordRaw } from "vue-router";
import layout from '@/layouts/index.vue'


/**
 * @description 路由参数配置简介
 * @param path ==> 路由菜单访问路径
 * @param name ==> 路由 name (对应页面组件 name)
 * @param redirect ==> 路由重定向地址
 * @param component ==> 视图文件路径
 * @param meta ==> 路由菜单元信息
 * @param meta.title ==> 路由标题 (用作 document.title || 菜单的名称)
 * @param meta.icon ==> 菜单和面包屑对应的图标
 * @param meta.activeMenu ==> 当前路由为详情页时，需要高亮的菜单
 * @param meta.isLink ==> 是否是路由外链
 * @param meta.link ==> 路由外链时填写的访问地址
 * @param meta.isHide ==> 是否在菜单中隐藏 (通常列表详情页需要隐藏)
 * @param meta.isFull ==> 菜单是否全屏 (示例：数据大屏页面)
 * @param meta.isAffix ==> 菜单是否固定在标签页中 (首页通常是固定项)
 *  @param meta.isNotice  ==> 是否在右上角展示新消息通知
 * */
export const staticRouter: RouteRecordRaw[] = [
    {
        path: '/',
        name: 'Initiate-assessment',
        component: layout,
        meta: {
            title: '发起考核',
            icon: 'icon-cangchucangku',
            activeMenu: "",
            isHide: false,
            isAffix: true,
            isFull: false,
            isLink: false,
            isNotice: false,
            link: "",
        },
        children: [
            {
                path: '/',
                name: 'Initiate-assessment',
                component: () => import('@/views/Initiate-assessment/index.vue'),
                meta: {
                    title: '发起考核',
                    icon: '',
                    activeMenu: "",
                    isHide: false,
                    isAffix: true,
                    isFull: false,
                    isLink: false,
                    isNotice: false,
                    link: "",
                },
            },
        ]
    },
    {
        path: '/my-assessment',
        name: 'my-assessment',
        component: layout,
        meta: {
            title: '我的考核',
            icon: 'icon-cangchucangku',
            activeMenu: "",
            isHide: false,
            isAffix: true,
            isFull: false,
            isLink: false,
            isNotice: false,
            link: "",
        },
        children: [
            {
                path: '/my-assessment',
                name: 'my-assessment',
                component: () => import('@/views/my-assessment/index.vue'),
                meta: {
                    title: '待提交',
                    icon: '',
                    activeMenu: "",
                    isHide: false,
                    isAffix: true,
                    isFull: false,
                    isLink: false,
                    isNotice: true,
                    link: "",
                },
            },
            {
                path: '/to-be-submitted',
                name: 'to-be-submitted',
                component: () => import('@/views/my-assessment/to-be-submitted.vue'),
                meta: {
                    title: '已提交',
                    icon: '',
                    activeMenu: "",
                    isHide: false,
                    isAffix: true,
                    isFull: false,
                    isLink: false,
                    isNotice: false,
                    link: "",
                },
            },
        ]
    },
    {
        path: '/evaluation',
        name: 'evaluation',
        component: layout,
        meta: {
            title: '我的待办',
            icon: 'icon-cangchucangku',
            activeMenu: "",
            isHide: false,
            isAffix: true,
            isFull: false,
            isLink: false,
            isNotice: false,
            link: "",
        },
        children: [
            {
                path: '/evaluation',
                name: 'evaluation',
                component: () => import('@/views/evaluation/index.vue'),
                meta: {
                    title: '我的待办',
                    icon: '',
                    activeMenu: "",
                    isHide: false,
                    isAffix: true,
                    isFull: false,
                    isLink: false,
                    isNotice: true,
                    link: "",
                },
            },
            {
                path: '/already-processed',
                name: 'already-processed',
                component: () => import('@/views/evaluation/already-processed.vue'),
                meta: {
                    title: '办理记录',
                    icon: '',
                    activeMenu: "",
                    isHide: false,
                    isAffix: true,
                    isFull: false,
                    isLink: false,
                    isNotice: false,
                    link: "",
                },
            },
            {
                path: '/my-return',
                name: 'my-return',
                component: () => import('@/views/evaluation/my-return.vue'),
                meta: {
                    title: '退回记录',
                    icon: '',
                    activeMenu: "",
                    isHide: false,
                    isAffix: true,
                    isFull: false,
                    isLink: false,
                    isNotice: false,
                    link: "",
                },
            },
        ]
    },
    {
        path: '/examine',
        name: 'examine',
        component: layout,
        meta: {
            title: '汇总审核',
            icon: 'icon-cangchucangku',
            activeMenu: "",
            isHide: false,
            isAffix: true,
            isFull: false,
            isLink: false,
            isNotice: false,
            link: "",
        },
        children: [
            {
                path: '/examine',
                name: 'examine',
                component: () => import('@/views/examine/index.vue'),
                meta: {
                    title: '汇总审核',
                    icon: '',
                    activeMenu: "",
                    isHide: false,
                    isAffix: true,
                    isFull: false,
                    isLink: false,
                    isNotice: true,
                    link: "",
                },
            },
        ]
    },
    {
        path: '/examine-statistcs',
        name: 'examine-statistcs',
        component: layout,
        meta: {
            title: '全员考核统计',
            icon: 'icon-cangchucangku',
            activeMenu: "",
            isHide: false,
            isAffix: false,
            isFull: false,
            isLink: false,
            isNotice: false,
            link: "",
        },
        children: [
            {
                path: '/examine-statistcs',
                name: 'examine-statistcs',
                component: () => import('@/views/examine-statistcs/workers.vue'),
                meta: {
                    title: '职工双月考核统计',
                    icon: '',
                    activeMenu: "",
                    isHide: false,
                    isAffix: false,
                    isFull: false,
                    isLink: false,
                    isNotice: false,
                    link: "",
                },
            },
            {
                path: '/offcer',
                name: 'offcer',
                component: () => import('@/views/examine-statistcs/offcer.vue'),
                meta: {
                    title: '干部双月考核统计',
                    icon: '',
                    activeMenu: "",
                    isHide: false,
                    isAffix: false,
                    isFull: false,
                    isLink: false,
                    isNotice: false,
                    link: "",
                },
            },
        ]
    },
    {
        path: '/401',
        name: '401',
        component: () => import('@/views/error/401.vue'),
        meta: {
            title: '401',
            isHide: true,
            isNotice: false
        },
    },
    {
        path: '/404',
        name: '404',
        component: () => import('@/views/error/404.vue'),
        meta: {
            title: '404',
            isHide: true,
            isNotice: false
        },
    },
    {
        path: '/:pathMatch(.*)',
        name: 'NotFound',
        redirect: '/404',
        isNotice: false
    },
]